<template>
  <div class="container">
    <Category :title="'美食'" :listData="foods">
      <img slot="center" src="favicon.ico">
      <a slot="footer">更多美食</a>
    </Category>
    <Category :title="'游戏'" :listData="games">
      <li slot="center" v-for="item in games">{{ item }}</li>
      <template v-slot:footer>
        <a>单机</a>
        <a>联基</a>
      </template>

    </Category>
    <Category :title="'电影'" :listData="films">
      <li slot="center" v-for="item in films">{{ item }}</li>
      <h2 slot="footer" >视频</h2>
    </Category>
  </div>
</template>

<script>
import Category from "@/componebts/Count.vue";

export default {
  name: "App",
  data() {
    return {
      foods: ["火锅", '烧烤', '小龙虾', '牛排'],
      games: ["红色戒", '穿越火线', '劲舞团', '超级玛丽'],
      films: ["《教父》", "《拆弹专家》", "《你好，李焕英》", '《阳光哥》']
    };
  },
  methods: {},
  components: {Category}


};


//100
</script>

<style>
.container {
  display: flex;
  justify-content: space-around;
}
</style>
